package com.shameit.goodqrinfomanager.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.shameit.goodqrinfomanager.bean.litepal.RuKu;
import com.shameit.goodqrinfomanager.databinding.ActivityChukuItemBinding;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class ChukuAdapter extends BaseQuickAdapter<RuKu, BaseDataBindingHolder<ActivityChukuItemBinding>> {

    public ChukuAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ActivityChukuItemBinding> activityChukuItemBindingBaseDataBindingHolder, RuKu ruKu) {
        ActivityChukuItemBinding binding = activityChukuItemBindingBaseDataBindingHolder.getDataBinding();
        if (binding != null) {
            binding.setData(ruKu);
        }
    }
}
